package com.exam.mysql;

import com.exam.entity.SysMajor;
import com.exam.entity.SysMajorExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface SysMajorDao {
    long countByExample(SysMajorExample example);

    int deleteByExample(SysMajorExample example);

    int deleteByPrimaryKey(Integer majorid);

    int insert(SysMajor record);

    int insertSelective(SysMajor record);

    List<SysMajor> selectByExample(SysMajorExample example);

    SysMajor selectByPrimaryKey(Integer majorid);

    int updateByExampleSelective(@Param("record") SysMajor record, @Param("example") SysMajorExample example);

    int updateByExample(@Param("record") SysMajor record, @Param("example") SysMajorExample example);

    int updateByPrimaryKeySelective(SysMajor record);

    int updateByPrimaryKey(SysMajor record);

    /**
     * 这是Mybatis Generator拓展插件生成的方法(请勿删除).
     * This method corresponds to the database table sys_major
     *
     * @mbg.generated
     * @author hewei
     */
    int batchInsert(@Param("list") List<SysMajor> list);
}